package com.tpp.base.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class ItemDetailVo implements Serializable {
    private Integer id;
    private String abstractMessage;
    private String itemName;
    private Integer itemType1Id;
    private String itemType1Name;
    private Integer itemType2Id;
    private String itemType2Name;
    private Integer areaId;
    private String areaName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime endTime;
    private Integer state;
    private String basicDescription;
    private String projectDescription;
    private String reminderDescription;
    private String imgUrl;
    private Integer cinemaId;
    private String latitude;
    private String longitude;
    private Double avgScore;
    private Integer commentCount;
}
